<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CompareController
 *
 * @author Khoi
 */
class EngagementController {

    public $model;
    public $view;

    public function __construct($_model, $_view) {
        $this->model = $_model;
        $this->view = $_view;
    }

    public function render($filter) {
        global $params;
        $streamView = new StreamView();
        $streamView->model = Stream::withId($filter["streamId"]);
        
        if (strtoupper($params[2]) != 'VIEWPORT') {
            
        }
        
        $masterView = MasterView::getInstance();
        $masterView->streamView = $streamView;
        $masterView->metricsView = $this->view;
    }

}
